﻿@{
    ViewBag.Title = "货位管理系统";
    Layout = "~/Views/Shared/_JQBaseLayOut.cshtml";
}
@section JQscriptSection{

    <link href="../../Content/default.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jqueryeasyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            //加载菜单
            // InitGrid();
            $('#loginOut').click(function () {
                $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function (r) {
                    if (r) {
                        $.ajax({
                            type: "POST",
                            url: '@Url.Action("LogOut", "Account")',
                            success: function (data) {
                                location.href = '@Url.Action("LogOn", "Account")';
                            }
                        });
                        }
                });
            })
        });
            function addTab(title, url) {
                if ($('#tt').tabs('exists', title)) {
                    $('#tt').tabs('select', title);
                } else {
                    var content = '<iframe scrolling="auto" frameborder="0"  src="' + url + '" style="width:100%;height:100%;"></iframe>';
                    $('#tt').tabs('add', {
                        title: title,
                        content: content,
                        closable: true
                    });
                }
            }
    </script>
}
<body class="easyui-layout" style="background-color: ButtonFace; font-size: 17px">
    <div data-options="region:'north',split:true,border:false" style="overflow: hidden; height: 51px; color: #000000; background: url(../Content/Ext/resources/themes/images/gray/panel-header-default-bottom-bg.gif); font-family: Verdana, 微软雅黑,黑体">
        <span style="float: right; padding-right: 10px; padding-top: 30px;" class="head">欢迎:@Model.USERNAME <a
            href="#" id="loginOut">安全退出</a></span>

        <span style="padding-left: 10px; font-size: 20px;">
            <img src="/Content/images/blocks.gif" width="20" height="20" align="absmiddle" />
            我厨&reg - 货位管理系统
        </span>
    </div>
    <div class="easyui-accordion" data-options="region:'west',title:'导航菜单',split:true,border:false" style="width: 200px; background-color: ButtonFace;">
        <ul class="easyui-tree">
            <li>
                <span>货位管理</span>
                <ul>
                    <li><a href="#" onclick="addTab('货位信息','/Location/LocationMain')">货位信息</a></li>
                    <li><a href="#" onclick="addTab('货位商品关联','/Location/LocationGoods')">货位商品关联</a></li>
                    <li><a href="#" onclick="addTab('下架指令','/Shelves/OffShelves')">下架指令</a></li>
                    <li><a href="#" onclick="addTab('商品货位搬移单','/GoodsMove/GoodsMove')">商品货位搬移单</a></li>
                    <li><a href="#" onclick="addTab('商品批次号打印','/PrintGoodsBatchCode/PrintGoodsBatchCode')">商品批次号打印</a></li>
                    <li><a href="#" onclick="addTab('货位库存','/LocationInventory/LocationInventory')">货位库存</a></li>
                    <li><a href="#" onclick="addTab('用户库位关联','/UserCell/UserCell')">用户库位关联</a></li>
                    <li><a href="#" onclick="addTab('订单核对','/OrderCheck/OrderCheck')">订单核对</a></li>
                    <li><a href="#" onclick="addTab('货位临保商品查询','/LocationInventoryBatch/LocationInventoryBatch')">货位临保商品查询</a></li>
                    <li><a href="#" onclick="addTab('商品临保期比例设置','/WarrantyTime/WarrantyTime')">商品临保期比例设置</a></li>
                </ul>
            </li>
            <li>
                <span>商品管理</span>
                <ul>
                    <li><a href="#" onclick="addTab('商品信息维护','/GoodsInfoManage/GoodsInfoManage')">商品信息维护</a></li>
                </ul>
            </li>
            <li>
                <span>分拣管理</span>
                <ul>
                    <li><a href="#" onclick="addTab('区域发货口关联','/AreaPort/AreaPort')">区域发货口关联</a></li>
                    <li><a href="#" onclick="addTab('配送箱号打印管理','/DeliveryBox/DeliveryBox')">配送箱号打印管理</a></li>
                    <li><a href="#" onclick="addTab('分拣批次管理','/PickBatch/PickBatch')">分拣批次管理</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <div id="tt" class="easyui-tabs" data-options="region:'center',title:'欢迎使用',border:false" style="background-color: ButtonFace;"></div>
</body>
